// 获取用户数据列表
const koaRouter = require("koa-router");
const router = new koaRouter({
  prefix: "/manager",
});
const usersControl = require("../controller/userinfo");
router.get("/", usersControl.users);
router.put("/:uId/state/:type", usersControl.modifyUserState);
router.get("/:id", usersControl.queryUser);
router.put("/:id", usersControl.updateUser);
router.delete("/:id", usersControl.deleteUser);
router.put("/:id/role", usersControl.assignRole);
module.exports = router;
